MODULE	'exec/ports',
			'exec/tasks'

CONST	NOTIFY_CLASS=$40000000,
		NOTIFY_CODE=$1234

OBJECT NotifyMessage
	ExecMessage:MN,
	Class:LONG,
	Code:UWORD,
	NReq:PTR TO NotifyRequest,
	DoNotTouch:LONG,
	DoNotTouch2:LONG

OBJECT NotifyRequest
	Name:PTR TO CHAR,
	FullName:PTR TO CHAR,
	UserData:LONG,
	Flags:LONG,
-> a) next LONG is unioned with "task:PTR TO tc"
	Port|Task:PTR TO MP,
	SignalNum:CHAR,
	pada:CHAR,
	padb[2]:CHAR,
	reserved[4]:LONG,
	Msgcount:LONG,
	Handler:PTR TO MP

CONST	NRF_SEND_MESSAGE=1,
		NRF_SEND_SIGNAL=2,
		NRF_WAIT_REPLY=8,
		NRF_NOTIFY_INITIAL=16,
		NRF_MAGIC=$80000000,
		NRB_SEND_MESSAGE=0,
		NRB_SEND_SIGNAL=1,
		NRB_WAIT_REPLY=3,
		NRB_NOTIFY_INITIAL=4,
		NRB_MAGIC=31,
		NR_HANDLER_FLAGS=$FFFF0000
